Skip to content

Conversation

@rono23
Copy link
Contributor

@rono23 rono23 commented Sep 4, 2025

This fixes a startup error on Puma 7:

undefined method 'on_stopped' for an instance of Puma::Events
image

@rono23 rono23 changed the title Rename on_stopped callback to after_stopped for Puma 7 Rename on_stopped to after_stopped for Puma 7 compatibility Sep 5, 2025
@wlipa
Copy link

wlipa commented Sep 5, 2025

It would be great to get this on the v3-stable branch as well.

@wlipa
Copy link

wlipa commented Sep 8, 2025

In Puma 7.0.1, this is now a deprecation warning instead of a crash.

@flavorjones
Copy link
Member

@rono23 Thanks for this. I've rebased the branch and added a CHANGELOG entry. When it goes green, I'll merge it.

@wlipa If you'd like to open a PR on the v3 branch, I'm willing to merge and cut a release, but otherwise I won't be backporting this.

@flavorjones flavorjones merged commit 35958b5 into rails:main Oct 27, 2025
17 checks passed
@rono23 rono23 deleted the puma-7 branch October 27, 2025 21:13
@flavorjones
Copy link
Member

Fixed in v4.4.0

@wlipa
Copy link

wlipa commented Oct 27, 2025

I'm on v4 now (partly due to this) so I won't be submitting a PR for v3. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants